package thread;

/**
 * @Description: null
 * @Project: testDemo
 * @Author: hjibo
 * @CreateDate: 2019-01-23 23:03
 * @ModificationHistory:
 */
public class ThreadDemo2 implements Runnable {

    @Override
    public void run() {
        Thread.currentThread().setName("ThreadDemo2线程");
        for (int i = 0; i < 5; i++) {
            System.out.println("这里是线程：" + Thread.currentThread().getName() + "，" + i);
        }
    }
}
